package com.haiheng.library_base.db

import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import java.util.*

/**
 *
 * @Des: 倒架记录表，这里倒架只针对按层倒架记录，单册倒架走的是上架
 * @Author: hwz
 * @Date:2022/5/25 0025
 * @Version: 1.0
 */
@Entity(tableName = "book_shifting_record_table", indices = [Index(value = ["recordType","srcContainerSubId","newContainerSubId"], unique = true)])
data class BookShiftingRecordTable(

    @PrimaryKey(autoGenerate = true)
    val id: Long = 0,
    //记录类型 智慧上架
    var recordType: String? = null,
    var status: Int = -1,
    var createDate: Date = Date(),
    var newContainerSubId: Int = 0,
    var srcContainerSubId: Int = 0,
    var orgCode: String? = null,
)